@mixin display-grid {
	display: -ms-grid;
	display: grid;
}
@mixin grid-template-columns( $cols, $gap, $fr ) {
	-ms-grid-columns: $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr $gap $fr;
	grid-template-columns: repeat( $cols, [col-start] minmax( 0, $fr ) );
	grid-column-gap: $gap;
}
@mixin grid-row( $row-start, $span ) {
	-ms-grid-row: $row-start;
	-ms-grid-row-span: $span;
		grid-row: $row-start / span $span;
}
@mixin grid-column( $col-start, $span ) {
	-ms-grid-column: $col-start * 2 - 1;
	-ms-grid-column-span: $span + ($span - 1);
		grid-column: $col-start / span $span;
}

.customer-home__heading {
	display: flex;
	border-bottom: 1px solid var( --color-neutral-5 );

	@include breakpoint-deprecated( '<660px' ) {
		padding-right: 16px;
	}

	.formatted-header {
		margin-right: 12px;
	}

	.formatted-header__subtitle {
		margin: 0;
	}

	.customer-home__view-site-button {
		margin: auto;
		margin-right: 0;

		.button {
			text-align: center;
			white-space: nowrap;
		}
	}
}

.customer-home__layout {
	@include grid-row( 4, 1 );
	@include breakpoint-deprecated( '>1040px' ) {
		@include grid-column( 1, 12 );
		@include display-grid;
		@include grid-template-columns( 12, 24px, 1fr );
		grid-gap: 24px;
	}
}

.customer-home__layout-col-left {
	@include breakpoint-deprecated( '>1040px' ) {
		@include grid-column( 1, 8 );
	}
}

.customer-home__layout-col-right {
	@include breakpoint-deprecated( '>1040px' ) {
		@include grid-column( 9, 4 );
	}

	& > .card,
	& > .foldable-card.card,
	& > .foldable-card.card.is-expanded {
		margin-bottom: 24px;
	}
}

.customer-home__loading-placeholder {
	@include placeholder();
	@include grid-column( 1, 12 );
}

.customer-home__section-heading {
	font-size: 1.25rem;
	margin: 32px 0 16px;

	@include breakpoint-deprecated( '<660px' ) {
		padding: 0 16px;
	}
}

.customer-home__main .card-heading {
	line-height: 1.3;
	margin-top: -8px;
	margin-bottom: 8px;
}

.customer-home__main .card-heading,
.customer-home__main .foldable-card__header {
	margin-top: 0;
	font-size: $font-body;
	font-weight: 600;
}

.customer-home__card-subheader {
	color: var( --color-text-subtle );
	margin: 0 0 1rem;
}


.customer-home__main .vertical-nav {
	margin: -0.5rem 0;

	.vertical-nav-item {
		border-bottom: 1px solid var( --color-neutral-5 );
		box-shadow: none;
		padding: 12px 0;

		.gridicon {
			right: 0;
		}
	}

	a:last-child .vertical-nav-item {
		border-bottom: none;
	}
}
